import java.util.Scanner;

public class test {

    public static int max(int i, int j) {
        if (i < j)
            return j;
        else
            return i;
    }

    public static void main1(String[] args) {
        int a = max(5, 6);
        System.out.println(a);
        int b = max(7, max(3, 4));
        System.out.println(b);
    }


    public static int fib(int n) {
        int i = 1;
        int j = 1;
        int sum = 0;
        if (n == 1 || n == 2) {
            return 1;
        } else {
            for (int a = 0; a < n - 3; a++) {
                sum = i + j;
                i = j;
                j = sum;
                sum = i + j;
            }
        }
        return sum;
    }

    public static void main2(String[]args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

            int x = fib(n);

            System.out.println(x);
        }

public  static int add(int x,int y){
    return x+y;
}
    public  static double add(double x,double y,double z){
    return x+y+z;
    }
    public static void main3(String[] args){
       int a= add(5,6);
        System.out.println(a);
       double c=add(5.5,4.2,3.7);
        System.out.println(c);
    }
    public static int compare(int a,int b){
        if (a>b)
            return a;
        else
            return b;
    }
    public static double compare(double a, double b,double c){
        if (a>b&&a>c||a>c&&a>b){
            return a;
        }
        else if(b>a&&b>c||b>c&&b>a) {
            return b;
        }
        else return c;
    }
   public static void main(String[] args){
         int a=compare(5,6);
       System.out.println(a);
       double b=compare(6.5,6.7,6.8);
       System.out.println(b);
   }
    }